require ("test.test1_csbuf")
require ("test.test_csbuf")

local _protocols = {[0]={}, {}, {}, {}, {}, {}, {}, {}, {}, {}}

_protocols[0][1000] = test.Head
_protocols[0][2001] = test.Test1
_protocols[0][2002] = test.Test2
_protocols[0][1001] = test.Test
_protocols[0][1002] = test.t2

function getProtocol(protoId, groupNumber)
	if groupNumber ~= nil and groupNumber > 0 then
		return _protocols[groupNumber][protoId] or _protocols[0][protoId]
	end
	return _protocols[0][protoId]
end
